#include<iostream>
using namespace std;
void intput(int *a) {
	for (int i = 0;i < 4;++i) {
		cin >> a[i];
		cin.get();// != '.') || ((i == 3 && a[i] < 1) || a[i] < 0 || a[i]>255)) 	
	//		return 1;
	}
//	return 0;
}
void coutip32(int *a) {
	for (int i = 0;i < 4;++i) 
		for (int j = 7;j >= 0;--j) 
			cout << (a[i] >> j & 1);
}
int main(){
	int a[4];
	intput(a);
	coutip32(a);
	return 0;
}
